package com.senlin;

import java.io.IOException;

public class DownloadTest {

    public static void main(String[] args) throws IOException {
        // https://ks-xpc4.xpccdn.com/5117a9fe-df5b-4670-90fb-87911b28a7e0.mp4
        // http://xunleia.zuida360.com/1803/%E8%AF%B7%E4%BB%A5%E4%BD%A0%E7%9A%84%E5%90%8D%E5%AD%97%E5%91%BC%E5%94%A4%E6%88%91.BD1280%E9%AB%98%E6%B8%85%E7%89%B9%E6%95%88%E4%B8%AD%E8%8B%B1%E5%8F%8C%E5%AD%97%E7%89%88.mp4
        // todo 实时显示下载进度
        Thunder.me()
//                .downloadHandler(new MemoryDownloadHandler())
//                .memoryCacheMode()
                // magnet:?xt=urn:btih:72459CC2FBB21FA50BF4680A8499BE7584D507FC&dn=%e8%bf%aa%e4%ba%9a%e7%89%b9%e6%b4%9b%e5%a4%ab%e4%ba%8b%e4%bb%b6.1080p.BD%e4%b8%ad%e5%ad%97%5b66%e5%bd%b1%e8%a7%86www.66Ys.Co%5d.mp4&tr=udp%3a%2f%2ftracker.openbittorrent.com%3a80%2fannounce&tr=udp%3a%2f%2ftracker.opentrackr.org%3a1337%2fannounce
                // ed2k://|file|%E9%9C%B8%E7%8E%8B%E5%88%AB%E5%A7%AC.BD720P.%E8%B6%85%E6%B8%85%E5%9B%BD%E8%AF%AD%E4%B8%AD%E5%AD%97.mp4|3639212957|96C9B8611778ADD3C146C439353290C1|h=H4DAJWQOJ7OKRRPF47X66QWFDBGKWN33|/
                .schedule("https://ks-xpc4.xpccdn.com/5117a9fe-df5b-4670-90fb-87911b28a7e0.mp4", "D:\\Video\\aa.mp4")
                //.schedule("https://ks-xpc4.xpccdn.com/fe8f0e83-8d83-474d-8642-43dbf616684c.mp4", "D:\\Video\\微博钱包.mp4")
//                .schedule("https://ks-xpc17.xpccdn.com/82bbe85d-0683-4af3-91e8-cb3621f93f1f.mp4", "D:\\Video\\五月天走心纪录短片.mp4")
//                .schedule("https://ks-xpc4.xpccdn.com/b9a664a9-8f02-46cb-85e4-08c5e6d217eb.mp4", "D:\\Video\\1500棵樱花共同绽放.mp4")
//                .schedule("https://ks-xpc4.xpccdn.com/ad25a35b-bbe2-4212-8d96-4ce0d0203206.mp4", "D:\\Video")
                .run();
    }

}
